import request from "./request";
// import qs from "qs"

//首页数据
export const getHomeDataAPI = () => request.get("/index/index")
//搜索页数据
export const getHistoryDataAPI = () => request.get("/search/index")
//搜索提示列表
export const getSearchTipsDataAPI = (params) => request.get("/search/helper", { params })
//搜索产品列表
export const getSearchProductsDataAPI = (params) => request.get("/goods/list", { params })
//删除历史记录
export const clearHistoryDataAPI = () => request.post("/search/clearhistory")



// export const jinPinAPI = (function () { return request.get("/products/recommend") })  //es5
// export const jinPinAPI = (() => { return request.get("/products/recommend") })      //化简1
// export const jinPinAPI = () => { return request.get("/products/recommend") }        //化简2
// export const jinPinAPI = () => request.get("/products/recommend")


// 应该说
// export const sendSMS = () => request.post("/sendSMS", {
//     number: 12342565,
// })//将参数作为变量传进来

// export const sendSMS = (params) => request.post("/sendSMS", qs.stringify(params))//发送手机验证码

//登良请求
// export const LoginAPI = (params) => request.post("/phoneRegin", qs.stringify(params))//发送手机验证码


